<!--{include control/admin/tpl/admin_header}-->
<div class="page_title">
	<h1>{$_lang['pay_manage']}</h1>
    <div class="tool">
	<a href="{BASE_URL}/index.php/admin/config_pay"  >{$_lang['pay_config']}</a>
	<a href="{BASE_URL}/index.php/admin/config_pay/online"  >{$_lang['online_pay_interface']}</a>
	<a href="{BASE_URL}/index.php/admin/config_pay/offline" class="here" >{$_lang['line_pay_interface']}</a>
	</div>
</div>
<div class="box post">
<form name="frm_config_basic" id="frm_config_basic" action="{BASE_URL}/index.php/admin/config_pay/offline_save" method="post" >    
   <input type="hidden" name="formhash"   value="{FORMHASH}">
   <input type="hidden" name="hdn_pay_id"   value="{$payment_config['pay_id']}">
    <table width="100%" class="detail" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <th scope="row" width="160">{$_lang['bank_name']}{$_lang['zh_mh']}</th>
        <td>
        	<select name="payment" {if $payment_config['payment']} disabled="disabled" {/if}>
        		{loop $bank_arr $k $v} 
					{if $payment_config['payment'] == $k}
					 <option value="{$k}" selected="selected">{$v}</option>
					 {else}
					 <option value="{$k}" >{$v}</option>
				    {/if} 
				{/loop}
        	</select>
		</td>
      
	  </tr>
      <tr>
        <th scope="row"> {$_lang['bank_deposit']}{$_lang['zh_mh']}</th>
        <td>
        	<input type="text" name="pay_name" id="pay_name" value="{$payment_config['pay_name']}" class="txt" style="width:260px;" msgArea="span_pay_name"
			limit="required:true;len:2-50" title="&nbsp;&nbsp;&nbsp;&nbsp;{$_lang['bank_deposit_name']}" msg="&nbsp;&nbsp;&nbsp;&nbsp;{$_lang['bank_deposit_name_not_empty']}"/> 
			<span id="span_pay_name"></span>
		 
		</td>
      </tr>
      <tr>
        <th scope="row"> {$_lang['is_enable']}{$_lang['zh_mh']}</th>
        <td>
        	<label for="rdo_pay_status1"><input type="radio" id="rdo_pay_status1" name="status" {if $payment_config['status']} checked="checked" {/if}  value="1">{$_lang['open']}</label>
            <label for="rdo_pay_status2"><input type="radio" id="rdo_pay_status2" name="status" {if !$payment_config['status']} checked="checked" {/if} value="0">{$_lang['close']}	</label></td>
      </tr>
	 	  
	  <tr>
        <th scope="row">{$_lang['account']}{$_lang['zh_mh']}</th>
        <td>
        	<input type="text" name="pay_account" id="pay_account" value="{$payment_config['pay_account']}" class="txt" style=" width:260px;" msgArea="span_pay_account"
			limit="required:true;len:16-19" title="&nbsp;&nbsp;&nbsp;&nbsp; {$_lang['bank_id']}" msg="&nbsp;&nbsp;&nbsp;&nbsp; {$_lang['bank_car_id_not_empty']}" onkeyup="clearstr(this)"/> 
			<span id="span_pay_account"></span>
		</td>
      </tr>	
		  <tr>
        <th scope="row">{$_lang['username']}{$_lang['zh_mh']}</th>
        <td>
        	<input type="text" name="pay_user" id="pay_user" value="{$payment_config['pay_user']}"  class="txt" style=" width:260px;" msgArea="span_pay_user"
			limit="required:true;len:2-50" title="&nbsp;&nbsp;&nbsp;&nbsp; {$_lang['account_legal']}" msg="&nbsp;&nbsp;&nbsp;&nbsp; {$_lang['account_legal_not_empty']}"/> 
			<span id="span_pay_user"></span>
		</td>
      </tr>
        <th scope="row">{$_lang['contact_tel']}{$_lang['zh_mh']}</th>
        <td>
        	<input type="text" name="pay_phone" class="txt" id="pay_phone" value="{$payment_config['pay_tel']}"  style=" width:260px;" msgArea="span_pay_phone"
			limit="required:true;type:tel" title="&nbsp;&nbsp;&nbsp;&nbsp; {$_lang['contact_the_car_as']}" msg="&nbsp;&nbsp;&nbsp;&nbsp; {$_lang['contact_the_car']}"/> 
			<span id="span_pay_phone"></span> 
		</td>
      </tr>
      <tr>
        <th scope="row">&nbsp;</th>
        <td>
            <div class="clearfix padt10">
                <button class="positive pill primary button" type="submit" name="confirm" onclick="return checkForm(document.getElementById('frm_config_basic'),false)" value="{$_lang['submit']}" ><span class="pen icon"></span>{$_lang['submit']}</button>
                <button class="pill button" type="button" onclick="to_back();" value={$_lang['return']}><span class="uparrow icon"></span>{$_lang['return']}</button>
            </div>
        </td>
      </tr>
    </table>
</form>
 
</div>
<!--{include control/admin/tpl/admin_footer}-->